import React, { Fragment } from 'react';
import { formatMessage } from 'umi/locale';
import Link from 'umi/link';
import styles from './UserLayout.less';
import logo from '../images/xj-logo.png';



class UserLayout extends React.PureComponent {
  // @TODO title
  // getPageTitle() {
  //   const { routerData, location } = this.props;
  //   const { pathname } = location;
  //   let title = 'Ant Design Pro';
  //   if (routerData[pathname] && routerData[pathname].name) {
  //     title = `${routerData[pathname].name} - Ant Design Pro`;
  //   }
  //   return title;
  // }
  componentDidMount() {

  }

  render () {
    const { children } = this.props;
    return (
      // @TODO <DocumentTitle title={this.getPageTitle()}>
      <div className={styles.container}>

        <div className={styles.top}>
          <div className={styles.before}> </div>

        </div>
        <div  className={styles.content}>
          {children}
        </div>

      </div>
    );
  }
}

export default UserLayout;
